﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ThanNhanTao.Server.Enum;

namespace ThanNhanTao.Server.Entities
{
    public class PhieuThanhToanNoiTruEntities
    {
        public string MaYeuCau { get; set; }
        public string TenYeuCau { get; set; }
        public DateTime NgayYeuCau { get; set; }
        public bool LaChayThan { get; set; }
        private string tenYeuCauChayThan;
        public string TenYeuCauChayThan
        {
            get
            {
                if (tenYeuCauChayThan == null)
                {
                    if(MaLoaiYeuCau != EnumMaLoaiYeuCau.ThuocDichTruyen)
                        tenYeuCauChayThan = String.Format("{0}/{1}  {2}", NgayYeuCau.Day, NgayYeuCau.Month, TenYeuCau);
                    else
                        tenYeuCauChayThan = TenYeuCau;
                }
                return tenYeuCauChayThan;
            }
            set
            {
                tenYeuCauChayThan = value;
            }
        }
        public string MaLoaiYeuCau { get; set; }
        public string TenLoaiYeuCau { get; set; }
        public decimal? GiaYeuCau { get; set; }
        public int? SoLuong { get; set; }
        public int TenYeuCauInt { get; set; }
        public string TenDonViTinh { get; set; }
        public decimal? ThanhTien { get; set; }
        public decimal? QuyBHYT { get; set; }
        public decimal? GiaKhac { get; set; }
        public decimal? NguoiBenh { get; set; }
        public byte PhanLoaiBHYT { get; set; }
    }
}
